import http from '@/utils/httpRequest'
import store from '@/store'
// 获取所有课程
export function fetchCourse(){
    return http.request({
        url:'/course'
    })
}
// 获取课程详情
export function fetchCourseDetail(id){
    return http.request({
        url:`/course/detail/${id}`
    })
}